package cn.yunhe.dao.impl;

import cn.yunhe.dao.IEmpDao;
import cn.yunhe.eneity.Emp;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import java.util.List;


@Setter
@Getter
public class EmpDao extends HibernateDaoSupport implements IEmpDao {
    @Override
    public List<Emp> getAllEmps() {
        List<Emp> list=getHibernateTemplate().find("from Emp");
        return list;
    }
}
